//引入axios实例
import http from "@/util/request";

export function getVipRule(val){
    return http({
        method:"GET",
        url:"/vip/rule",
        params: val
    })
}

export function updateVipRule(val){
    return http({
        method:"POST",
        url:"/vip/update",
        data: val
    })
}

export function deleteVipRule(val){
    return http({
        method:"DELETE",
        url:`/vip/delete/${val}`,
    })
}

export function addVipRule(val){
    return http({
        method:"POST",
        url:"/vip/add",
        data: val
    })
}